<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品栏目</title>
    <link rel="stylesheet" href="http://localhost/ly/shop/APP/admin/Tpl/User/css/index.css">
    <script type='text/javascript' src='http://localhost/ly/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
    <script  type="text/javascript">
        $(function(){
            $(document).ready(function(){
                $("#right .art-lisi table tbody tr").removeClass("row_bg");
                $("#right .art-lisi table tbody tr:even").addClass("row_bg");
            })            
        })
    </script>

</head>
<body>
    <div id="admin">                     
        <div id="right">
            <div class="M-articless">
                <div class="top_box">
                    <h3>用户列表</h3>
                    <a class="add" href="<?php echo U('add','gt_id='.$_GET['gt_id']);?>" target="content" title='添加属性'></a>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <table>
                        <thead>
                            <tr>
                                <th style="width:80px">用户ID</th>
                                <th>账号</th> 
                                <th>昵称</th>                                   
                                <th  style="width:90px">操作</th>
                            </tr>
                        </thead> 

                        <tbody>
                            <?php $hd["list"]["u"]["total"]=0;if(isset($user) && !empty($user)):$_id_u=0;$_index_u=0;$lastu=min(1000,count($user));
$hd["list"]["u"]["first"]=true;
$hd["list"]["u"]["last"]=false;
$_total_u=ceil($lastu/1);$hd["list"]["u"]["total"]=$_total_u;
$_data_u = array_slice($user,0,$lastu);
if(count($_data_u)==0):echo "";
else:
foreach($_data_u as $key=>$u):
if(($_id_u)%1==0):$_id_u++;else:$_id_u++;continue;endif;
$hd["list"]["u"]["index"]=++$_index_u;
if($_index_u>=$_total_u):$hd["list"]["u"]["last"]=true;endif;?>

                                <tr>
                                    <td><?php echo $u['uid'];?></td>                                   
                                    <td><?php echo $u['username'];?></td>
                                    <td><?php echo $u['realname'];?></td>
                                    <td class="caozuo">                       
                                        <a href="<?php echo U('del',array('uid'=>$u['uid']));?>">删除</a>
                                    </td>
                                </tr>
                            <?php $hd["list"]["u"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                        </tbody> 

                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <div class="page">
                                        <a class="pg" title="Previous Page" href="?c=blog&m=pre">« Previous</a>
                                        <?php echo $page;?>
                                        <a class="pg" title="Next" href="?c=blog&m=next">Next »</a>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>  
                    </table>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>